import Home from './home';
import CovidStatus from './covidStatus/covidStatus';

function ContenTab(props) {
  const { tabKey } = props;

  const MeauMap = {
    1: <Home />,
    2: <h1>hello Weather</h1>,
    3: <CovidStatus />, 
    4: <h1>hello Traffic</h1>
  };
  
  return (
    <>
      {MeauMap[tabKey]}
    </>
  )
};

export default ContenTab;